﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace tarningar
{
    class dice
    {
        private int Value;
        private static System.Random r;

        public dice()
        {
            Value = 0;
            r = new System.Random();
        }
        public void ThrowDice()
        {
            Value = r.Next(1, 7);
        }
        public int Read()
        {
            return Value;
        }
    }
}
